
import HTTP from "./xhr"
const http = new HTTP
/**
 * login
 */
export const apiRuleSearch =(params)=>{
    const tempUrl = getUrl(params.name)
    return  http.post(tempUrl, params)
} 
const getUrl = (keyName = 'key1') => {
    const obj = {
        key1: 'api/test1',
        key2: 'api/test2'
    }
    return obj[keyName]
}
